Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set predicted funding rate to None in OKX if nextFundingRate is empty. #1003

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

agijsberts
Copy link
Contributor

This trivial change fixes exceptions on funding messages from OKX with empty nextFundingRate, such as
{"arg":{"channel":"funding-rate","instId":"XRP-USDT-SWAP"},"data":[{"fundingRate":"0.0000348111167807","fundingTime":"1705190400000","instId":"XRP-USDT-SWAP","instType":"SWAP","maxFundingRate":"0.0075","method":"current_period","minFundingRate":"-0.0075","nextFundingRate":"","nextFundingTime":"1705219200000","settFundingRate":"0.0000682274966659","settState":"settled","ts":"1705182304043"}]}

  • - Tested
  • - Changelog updated
  • - Tests run and pass
  • - Flake8 run and all errors/warnings resolved
  • - Contributors file updated (optional)

@bmoscon bmoscon merged commit bbaee2e into bmoscon:master Jan 15, 2024
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants